
package com.ruoyi;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "iot")
public class IotConfig {
    private static String appKey;
    private static String appSecret;
    private static String masterKey;
    private static String productId;
    private static String dbUrl;
    private static String dbUser;
    private static String dbPassword;

    // Getter 和 Setter 方法
    public static String getAppKey() { return appKey; }
    public void setAppKey(String appKey) { this.appKey = appKey; }

    public static String getAppSecret() { return appSecret; }
    public void setAppSecret(String appSecret) { this.appSecret = appSecret; }

    public static String getMasterKey() { return masterKey; }
    public void setMasterKey(String masterKey) { this.masterKey = masterKey; }

    public static String getProductId() { return productId; }
    public void setProductId(String productId) { this.productId = productId; }

    public static String getDbUrl() { return dbUrl; }
    public void setDbUrl(String dbUrl) { this.dbUrl = dbUrl; }

    public static String getDbUser() { return dbUser; }
    public void setDbUser(String dbUser) { this.dbUser = dbUser; }

    public static String getDbPassword() { return dbPassword; }
    public void setDbPassword(String dbPassword) { this.dbPassword = dbPassword; }
}
